<template>
  <div id="app">
    <template v-if="route.path.startsWith('/user')">
      <router-view />
    </template>
    <template v-else>
      <BasicLayout />
    </template>
  </div>
</template>

<script setup lang="ts">
import BasicLayout from "@/layouts/BasicLayout.vue";
import { useRouter, useRoute } from "vue-router";
import { useStore } from "./store/index";
import { onMounted } from "vue";
import ACCESS_ENUM from "@/access/accessEnum";
import UserLayout from "@/layouts/UserLayout.vue";

const router = useRouter();
const route = useRoute();
const store = useStore();

onMounted(() => {
  doInit();
});

// 全局初始化函数，有全局单次调用的代码，都可以写在这里
const doInit = () => {
  console.log("代码入口！！！");
};
</script>

<style></style>
